package org.example.auth.repository;

import org.example.auth.model.entity.Authority;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Collection;
import java.util.List;
import java.util.Optional;

public interface AuthorityRepository extends JpaRepository<Authority, Long> {
    List<Authority> findByIdIn(Collection<Long> ids);

    Optional<Authority> findByContent(String content);

}
